package com.example.springbook.service;

import com.example.springbook.bean.Book;

import java.util.List;

public interface BookService {
    boolean addBook(Book book);
    boolean updateBook(Book book);
    boolean lendBook(int bookid);
    boolean returnBook(int bookid);
    boolean deleteBook(int bookid);

    int findSurplus(int bookid);
    List<Book> findByBookName(String bookName);
    List<Book> findBookAll();
}
